package com.erpoa.dto;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.extern.slf4j.Slf4j;

@Data
@Builder
@Slf4j
@EqualsAndHashCode
public class DealMessage {

	private boolean isSuccess;
	private String mMessage;// 生产入库的时候，传WorkInSummary的Json信息
	private Integer mPos;

	public DealMessage() {
	}

	public DealMessage(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}

	public DealMessage(boolean isSuccess, String message) {
		this.isSuccess = isSuccess;
		mMessage = message;
	}

	public boolean isSuccess() {
		return isSuccess;
	}

	public void setSuccess(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}

	public String getMessage() {
		return mMessage;
	}

	public void setMessage(String message) {
		mMessage = message;
	}

	public Integer getPos() {
		return mPos;
	}

	public void setPos(Integer pos) {
		mPos = pos;
	}

	@Override
	public String toString() {
		return "DealMessage{" +
				"isSuccess=" + isSuccess +
				", mMessage='" + mMessage + '\'' +
				", mPos=" + mPos +
				'}';
	}

	public DealMessage(boolean isSuccess, String mMessage, Integer mPos) {
		this.isSuccess = isSuccess;
		this.mMessage = mMessage;
		this.mPos = mPos;
	}

	public String getmMessage() {
		return mMessage;
	}

	public void setmMessage(String mMessage) {
		this.mMessage = mMessage;
	}

	public Integer getmPos() {
		return mPos;
	}

	public void setmPos(Integer mPos) {
		this.mPos = mPos;
	}
}
